﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%-- 
    JSP Name : winnerpopup02.jsp
    Description : 이벤트 당첨 레이어
    author jkKim
    since 2012. 5. 10.
    version 1.0
    Modification Information
       since          author              description
    ===========    =============    ===========================
    2012. 5. 10.     jkKim     최초 생성
--%>
<%@ include file="/WEB-INF/jsp/com/include/declare.jspf" %>
<jsp:scriptlet>
        pageContext.setAttribute("crlf", "\r\n");
        pageContext.setAttribute("lf", "\n");
        pageContext.setAttribute("cr", "\r");
</jsp:scriptlet>
<div class="event-info-wrap">
    <div class="event-info">
        <img src="<c:url value='${result.thumnImgPath}'/>" alt="<c:out value='${result.evntTitl}'/>" class="thumb" />
        <div class="information">
            ${result.evntSbc}
            <p class="period">${fn:substring(result.strtDt, 0, 4)}-${fn:substring(result.strtDt, 4, 6)}-${fn:substring(result.strtDt, 6, 8)} ~ ${fn:substring(result.fnhDt, 0, 4)}-${fn:substring(result.fnhDt, 4, 6)}-${fn:substring(result.fnhDt, 6, 8)}</p>
        </div>
    </div>
    <div class="winner-msg-wrap">
        <img src="/kr/images/layerpopup/txt_winner02.gif" alt="이벤트 당첨을 축하드립니다!" />
        <p class="winner-msg"><em class="point04">${result.evntTitl}</em> 당첨 되셨습니다.</p>
        <br/>
    </div>
    <div class="winner-msg-wrap02" id="winner-msg-wrap02">
        <div id="evntPrintArea">
        <ul class="list-type01">
            ${fn:replace(result1.winOpi, lf, "<br/>")}
        </ul>
        <div class="coupon-area">
            <c:if test="${result1.winTcktNo != null && result1.winTcktNo != ''}">
                <p class="coupon-num">${result1.winTcktNo}</p>
</c:if> 
                <c:if test="${result1.winImgPath != null && result1.winImgPath != ''}">
                    <img src="<c:url value='${result1.winImgPath}'/>" alt="쿠폰 이미지" />
                </c:if>
            
            
        </div>
        </div> 
        <c:if test="${(result1.winImgPath != null && result1.winImgPath != '') || (result1.winTcktNo != null && result1.winTcktNo != '')}">
            <div class="btnwrap">
                <a href="javascript:evntPrint('evntPrintArea')"><img src="/kr/images/layerpopup/btn_print.gif" alt="인쇄" /></a>
            </div>
        </c:if>
    </div>
    <ul class="list-type02">
        ${fn:replace(result1.winAttnImtr, lf, "<br/>")}
    </ul>
</div>